Skip to main content

Change Background (No Masking Needed)

You can change the background of an image with just a prompt.

API Endpoints

ImagePipeline-Post
https://api.imagepipeline.io/bgchanger/v1
ImagePipeline-Auth
API-Key

{
"prompt": "highly detailed, photo of a woman in a party dress, brown hair, green forests and a waterfall in the background",
"negative_prompt": "blurred edges, imperfect, bad, blurry",
"init_image":"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_z5d60d83d2978061b99010713_f1029906c1f393cc5_d20241111_m113004_c005_v0501017_t0046_u01731324604242",
"seed":87965
}
ImagePipeline-Background-Change

Control the Style of Background

You can add a reference image to copy the style of that image when generating the background by using the style_image parameter

ImagePipeline-Post
https://api.imagepipeline.io/bgchanger/v1
ImagePipeline-Auth
API-Key

{
"prompt": "highly detailed, photo of a woman in a party dress, brown hair, green forests and a waterfall in the background",
"negative_prompt": "blurred edges, imperfect, bad, blurry",
"init_image":"https://f005.backblazeb2.com/b2api/v2/b2_download_file_by_id?fileId=4_z5d60d83d2978061b99010713_f1029906c1f393cc5_d20241111_m113004_c005_v0501017_t0046_u01731324604242",
"seed":-1,
"style_image": "https://f005.backblazeb2.com/file/imagepipeline/user_2ZYdYTFr4LKcIzUlgtSS3tVe3qv/72f97c89-15f1-4302-9235-12003e0bd7aa0.png"
}

JSON Parameters

ParameterDescriptionTypeDefault Value
style_imagePublic URL for the style you want to copystringRequired
init_imagePublic URL for the initial image to be worked uponstringRequired
promptText prompt to guide the image generationstringRequired
samplesNumber of images to generate, must be between 1 and 4integer1
negative_promptText prompt to exclude specific elements from the generated imagestringOptional
seedSeed value for reproducible image generationinteger-1
server_idOptional server ID to use an enterprise subscription; can be used for load-balancing or specific server routingstringOptional
webhookURL where the generated image will be sent after processingstringOptional
direct_linkFetches a user-friendly URL in PNG formatbooleanfalse
batch_idIdentifier for grouping multiple images generated in a batchstringOptional
file_prefixPrefix to add to the filename of the generated imagestringOptional
queued_image_urlsReturns the links of images before they’re processed; the link will have the image once the task completesbooleanfalse